﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SMainCityBattle2PlayerScore extends Object
    {
        public var playerId:SEntityId;
        public var guildId:SEntityId;
        public var playerName:String;
        public var career:int;
        public var killNum:int;
        public var beKilledNum:int;
        public var assistNum:int;
        public var isHaveFlag:Boolean;
        public var killFlagNum:int;
        public var combat:int;
        public var contribute:int;
        public var score:int;
        public var lastUpdateDt:Date;

        public function SMainCityBattle2PlayerScore()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.playerId.__write(param1);
            this.guildId.__write(param1);
            param1.writeString(this.playerName);
            param1.writeByte(this.career);
            param1.writeInt(this.killNum);
            param1.writeInt(this.beKilledNum);
            param1.writeInt(this.assistNum);
            param1.writeBool(this.isHaveFlag);
            param1.writeInt(this.killFlagNum);
            param1.writeInt(this.combat);
            param1.writeInt(this.contribute);
            param1.writeInt(this.score);
            param1.writeDate(this.lastUpdateDt);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.playerId = new SEntityId();
            this.playerId.__read(param1);
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.playerName = param1.readString();
            this.career = param1.readByte();
            this.killNum = param1.readInt();
            this.beKilledNum = param1.readInt();
            this.assistNum = param1.readInt();
            this.isHaveFlag = param1.readBool();
            this.killFlagNum = param1.readInt();
            this.combat = param1.readInt();
            this.contribute = param1.readInt();
            this.score = param1.readInt();
            this.lastUpdateDt = param1.readDate();
            return;
        }// end function

    }
}
